<?php
 session_start();
 include('class.php');
 $db = new DB();
 $db->finishAssignment($_SESSION['shijian'],$_SESSION['name'],$_SESSION['id']);
 $db->close();
echo "<script type='text/javascript' language='javascript'>
              alert('Finished Successfully!');
             </script>";
  Header('Refresh: 0.01;url=DailyAssignmentForStaff.php');
?>